<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>selected</title>
    <script src = 'jquery-1.12.4.min.js'></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .bord{
            border: 1px dashed #ee2602;
            width: 90%;
            margin: 20px auto;
        }
        .title{
            font-size: 20px;
            font-weight: bold;
            margin: 20px;
        }
        .introduce{
            font-size: 16px;
            margin: 0 0 20px 50px;
        }
        .red{
            color: red;
        }
    </style>
</head>
<div>
    <div class="bord">
        <div class="title">selected</div>
        <div class="introduce">匹配所有选中的option元素</div>
    </div>
    <div class="bord">
        <div class="title">演示效果</div>
        <div class="introduce">
            <select>
                <option value="1">Flowers</option>
                <option value="2" selected="selected">Gardens</option>
                <option value="3">Trees</option>
            </select>
        </div>
    </div>
    <div class="bord">
        <div class="title">代码</div>
        <div class="introduce">
            <pre>
&lt;div class="introduce"&gt;
            &lt;select&gt;
                &lt;option value="1"&gt;Flowers&lt;/option&gt;
                &lt;option value="2" <a class="red"> selected="selected"</a>&gt;Gardens&lt;/option&gt;
                &lt;option value="3"&gt;Trees&lt;/option&gt;
            &lt;/select&gt;
        &lt;/div&gt;
            </pre>
        </div>
    </div>
</div>
</body>
</html>